package com.mk.web.io.nio;

import java.nio.file.Path;
import java.nio.file.Paths;

/**
 * Created by WangChen on 2018/12/7 11:34.
 */
public class PathTest {

    public static void main(String [] args){
        Path rootPath = Paths.get("d:/");

        Path relativePath = Paths.get(rootPath.toString(), "1.txt");
        System.out.println(relativePath.toAbsolutePath());

    }
}
